<script setup lang="ts">
import { useRequest } from "csrq";
import { onMounted } from "vue";

onMounted(() => {
  const req = useRequest();
  const url = "api/1";
  const params = { param1: "value1", param2: "value2" };
  const api1 = req.createGetRequestExecutor(url, params);
  console.log(api1);
});

defineProps<{ msg: string }>();
</script>

<template>
  <h1>{{ msg }}</h1>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
